import axios from 'axios'
import React, { useEffect } from 'react'

export default function App() {
  // 刚加载完成就发送请求,第二个参数填入一个空数组
  useEffect(()=>{
    axios.get('/api1/user')
  },[])
  return (
    <div>App</div>
  )
}
